package com.gusto.engine.colfil.formula.impl;

import java.util.List;

import org.apache.log4j.Logger;

import com.gusto.engine.colfil.Distance;
import com.gusto.engine.colfil.Evaluation;
import com.gusto.engine.colfil.formula.UserCorrelation;

/**
 * <p>Implementation of Spearman's User correlation.<br/>
 * Not implemented yet.</p>
 * 
 * @author amokrane.belloui@gmail.com
 * 
 */
@Deprecated
public class SpearmanCorrelation implements UserCorrelation {
	
	private Logger log = Logger.getLogger(getClass());
	
	public Distance userCorrelation(long user1, long user2, List<? extends Evaluation> evals1, List<? extends Evaluation> evals2) {
		
		log.fatal(getClass() + " not implemented");
		
		Distance dist = new Distance();
		dist.setId1(user1);
		dist.setId2(user2);
		dist.setCount(0);
		dist.setDistance(0.0);
		return dist;
	}

}
